package Test2;

import java.util.ArrayList;

public class P1 {
    public static void main(String[] args) {
        ArrayList<Student>list=new ArrayList<>();
       Student s1=new Student("zhahhaid",11);
       Student s2=new Student("jekw",453);
       Student s3=new Student("jek111w",453);
       list.add(s1);
       list.add(s2);
       list.add(s3);
        System.out.print("[");
        for (int i = 0; i < list.size(); i++) {
            if(i!= list.size()-1){
                System.out.print(list.get(i)+", ");
            }else System.out.print(list.get(i)+" ]");
        }


    }

}
